package com.fh.modules.pms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fh.common.query.QueryRuleEnum;
import com.fh.common.query.annotation.QueryWrapperRule;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 商品销售提成
 * @author： code generator
 * @date：   2019-09-27
 * @version： V1.0
 */
@Data
@TableName("pms_product")
public class PmsProduct implements Serializable {
    private static final long serialVersionUID = 1L;
    
	/**主键*/
	@TableId(type = IdType.AUTO)
	private Integer id;
	/**品牌ID*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private Integer brandId;
	/**商品分类ID*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private Integer productCategoryId;
	/**商品属性ID*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private Integer productAttributeGroupId;
	/**商品名称*/
	@QueryWrapperRule(rule=QueryRuleEnum.LIKE)
	private String name;
	/**首图*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private String headPic;
	/**轮播图，最多5张*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private String pic;
	/**货号*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private String productSn;
	/**上架状态：0->下架；1->上架*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private Integer publishStatus;
	/**排序*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private Integer sort;
	/**销量*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private Integer sale;
	/**单价*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private java.math.BigDecimal price;
	/**会员vip价格*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private java.math.BigDecimal vipPrice;
	/**赠送的积分*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private Integer giftPoint;
	/**副标题*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private String subTitle;
	/**商品描述*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private String description;
	/**商品规格属性Json*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private String propertyList;
	/**库存*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private Integer stock;
	/**库存预警值*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private Integer lowStock;
	/**单位*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private String unit;
	/**商品重量，默认为克*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private java.math.BigDecimal weight;
	/**最少购买数量*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private Integer miniBuyNum;
	/**购买增加份数步长*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private Integer buyStepNum;
	/**删除状态（0，正常，1已删除）*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private Integer delFlag;
	/**创建人*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	/**更新人*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date updateTime;
}
